package com.gtw.modules.dao;

import com.gtw.modules.entity.TbBanner;

import java.util.List;

import com.gtw.modules.entity.TbCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/** Banner
 * @author wuye
 */
@Mapper
@Repository
public interface TbBannerDao extends BaseDao<TbBanner>{

    int deleteByPrimaryKey(Integer id);

    int insert(TbBanner record);

    int insertSelective(TbBanner record);

    TbBanner selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbBanner record);

    int updateByPrimaryKey(TbBanner record);

    /**
     * 查询所有
     * @return
     */
    List<TbBanner> findALL();
}